/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.jsfclassic.controller.menu;

import com.jsfclassic.controller.navigation.Navigator;
import com.jsfclassic.controller.navigation.UserNavigationConstants;
import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.SessionScoped;
import javax.faces.event.ActionEvent;

/**
 *
 * @author cubika
 */
@ManagedBean(name="prueba")
@SessionScoped
public class Prueba implements Serializable{
    
    @ManagedProperty(value = "#{navigator}")
    Navigator navigator;
    


    public void hacerAlgoYNavegar(ActionEvent event){
        System.out.println("Hago Algo");
        navigator.navigateTo(UserNavigationConstants.user);
    }

    public Navigator getNavigator() {
        return navigator;
    }

    public void setNavigator(Navigator navigator) {
        this.navigator = navigator;
    }

    
}
